﻿
<div id="dialog"></div>

<script language="javascript" type="text/javascript">

    function showOKDialog(dialogText) {

        var dialogObject = $("#dialog");

        if (dialogText != "") {
            dialogObject.html(dialogText);
        }

        dialogObject.dialog({
            closeOnEscape: true,
            autoOpen: true,
            title: "Tau Content Management",
            resizable: false,
            modal: true,
            width: 400,
            buttons: [
            {
                text: "OK",
                click: function () {
                    $(this).dialog("close");
                }
            }]
        });
    }

    function showYesNoDialog(dialogText, yesFunction) {

        var dialogObject = $("#dialog");

        if (dialogText != "") {
            dialogObject.html(dialogText);
        }

        dialogObject.dialog({
            closeOnEscape: true,
            autoOpen: true,
            title: "Tau Content Management",
            resizable: false,
            modal: true,
            width: 500,
            buttons: [
                {
                    text: "Yes",
                    click: yesFunction
                },
                {
                    text: "No",
                    click: function () {
                        $(this).dialog("close");
                    }
                }
            ]
        });
    }

</script>